'''
Created on 12/12/2011

@author: nacho
'''

from instruction import Instruction

class PrintInstruction(Instruction):
    '''
    classdocs
    '''

    
    def __init__(self, printeable, bu = 1):
        '''
        Constructor
        '''
        
        self.burst = bu
        self.printing = printeable
        
        
    def execute(self): 
        
        self.burst -= 1
        print(self.printing)
        
        
    def needCPU(self):
        
        return True
        
    def decreaseBurst(self):
        
        self.burst -= 1
        
    